home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gnome-session.postinst < prev    next >
Encoding:
Text File  |  2007-04-10  |  1.4 KB  |  37 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = configure ]; then
  4.   update-alternatives --install /usr/bin/x-session-manager \
  5.     x-session-manager /usr/bin/gnome-session 50 \
  6.     --slave /usr/share/man/man1/x-session-manager.1.gz \
  7.     x-session-manager.1.gz /usr/share/man/man1/gnome-session.1.gz
  8.   update-alternatives --install /usr/share/images/desktop-base/desktop-splash \
  9.     desktop-splash /usr/share/pixmaps/splash/gnome-splash.png 10
  10.   update-alternatives --install /usr/share/images/desktop-base/desktop-splash \
  11.     desktop-splash /usr/share/pixmaps/splash/gnome-debian-splash.png 10
  12. fi
  13.  
  14. # Automatically added by dh_gconf
  15. if [ "$1" = "configure" ]; then
  16.     gconf-schemas --register gnome-session.schemas 
  17. fi
  18. # End automatically added section
  19. # Automatically added by dh_desktop
  20. if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
  21.     update-desktop-database -q
  22. fi
  23. # End automatically added section
  24. # Automatically added by dh_iconcache
  25. touch -m /usr/share/icons/hicolor
  26. if [ "$1" = configure ] && \
  27.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  28.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ] && \
  29.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  30.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  31.     gtk-update-icon-cache -q /usr/share/icons/hicolor
  32. fi
  33. # End automatically added section
  34.  
  35.  
  36. exit 0
  37.